using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.IO;
using System.Xml.Serialization;

using D3;
using D3.Common;

namespace ApiTest
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                ItemParser.ParseFile("picklist.txt");
                                
                Unit[] items = Me.GetContainerItems(Container.Inventory);

                foreach (Unit u in items)
                {
                    Game.Print(String.Format("{0} {1}", u.Name, ItemParser.CheckItem(u)));
                }
            }
            catch (Exception e)
            {
                Game.Print(e.ToString());
            }
        }

    }
}

